package com.make.house.api.controller.reponse.upload;

/**
 * Created by xujun on 2017/11/20.
 * 又拍云上传成功后回调的对象
 */
public class UpyunCallBackDao {
    private String url;
    private String media_id;
    private String width;
    private String height;

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getMediaId() {
        return media_id;
    }

    public void setMediaId(String media_id) {
        this.media_id = media_id;
    }

    public String getWidth() {
        return width;
    }

    public void setWidth(String width) {
        this.width = width;
    }

    public String getHeight() {
        return height;
    }

    public void setHeight(String height) {
        this.height = height;
    }

    public static Builder newBuilder() {
        return new Builder();
    }

    public static final class Builder {
        private UpyunCallBackDao instance;

        private Builder() {
            this.instance = new UpyunCallBackDao();
        }

        public Builder withUrl(String url) {
            this.instance.setUrl(url);
            return this;
        }

        public Builder withMediaId(String mediaId) {
            this.instance.setMediaId(mediaId);
            return this;
        }

        public Builder withH(String height) {
            this.instance.setHeight(height);
            return this;
        }

        public Builder withW(String width) {
            this.instance.setWidth(width);
            return this;
        }


        public UpyunCallBackDao build() {
            return this.instance;
        }
    }
}
